import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: () => import(/* webpackChunkName: "index2" */"@/views/index.vue"),
  },
  {
    path: "/about",
    component: () => import(/* webpackChunkName: "about" */"@/views/about.vue"),
  },
  {
    path: "/company",
    component: () => import(/* webpackChunkName: "company" */"@/views/company.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
